package blog.farb.top.springbootforredis.repo;

import blog.farb.top.springbootforredis.entity.Stock;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface StockRepo extends JpaRepository<Stock, Integer> {
    Optional<Stock> findById(int id);
}
